<%@ page language="java" import="java.util.*,share.security.auth.*"
	pageEncoding="UTF-8"%>
<div id="toolbar">
	<%
		Authenticator auth = AuthFactory.newAuthenticator(request
				.getSession());
		if (auth.hasLogin() == null) {
	%>
	<div id='tb_login_view' class='tb_view'>
		<a id="tb_login"
			href="javascript:showDiv('floatLoginForm','event',320,240);">登录</a>
	</div>
	<%
		} else {
	%>
	<div id='tb_logined_view' class='tb_view'>
		欢迎你,<%=AuthFactory.newAuthenticator(session).hasLogin()
						.getUsername()%>
		<a id='tb_logout' href="servlet/login">退出登录</a>
	</div>
	<%
		}
	%>
	<form action="#" id="KeywordSearchForm" method="post"
		style="display: inline;">
		<input name="keyword" value="搜索功能研发中..." onfocus="cleanSearchBox(this)"
			onblur="SearchBoxOnBlur(this)" type="text" />
		<input id="searchBoxSubmit" type="submit" value="Search now" />
	</form>
</div>
<div id="floatLoginForm" class="floatDiv"
	style="width: 320px; height: 190px; display: none; FONT-SIZE: 12px; FONT-FAMILY: 宋体; border: #999999 solid 3px;">
	<div onMouseDown="moveDiv('floatLoginForm', event)">
		<div
			style="FONT-SIZE: 16px; font-stretch: wider; width: 320px; border-bottom: solid 1px #000; height: 25px; padding-top: 5px;">
			用户登录 User Login
		</div>
	</div>
	<br />
	<br />
	<div class="divContent">
		<div>
			<form name="tb_login_form" action="servlet/login" method="post">
				用户名：
				<input name="username" />
				<br />
				<br />
				密 码 ：
				<input type='password' name="password" />
				<br />
				<br />

				<input type='submit' value=".登 录." />
				<input type='button' value=".关 闭."
					onclick="closeDiv('floatLoginForm')" />
				<br />
			</form>
		</div>
	</div>
</div>

